package com.zhangdi.dwperms.service.impl;

import com.zhangdi.dwperms.dao.MenuDao;
import com.zhangdi.dwperms.service.MenuService;
import com.zhangdi.dwperms.entity.Menu;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    MenuDao menuDao;

    @Override
    public List<Menu> findDefaultUserPermissions() {
        return menuDao.findAll();
    }

    @Override
    public List<Menu> findUserAllPermissions(long userId) {
        return null;
    }
}
